<?php
	if(!LoginUser::isLogin("karyawan")){
		LoginUser::redirectToLoginPage("karyawan");
	}
	$_SESSION["RF"]["subfolder"] = "test/";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="language" content="en" />

		<!-- blueprint CSS framework -->
		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
		<!--[if lt IE 8]>
		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
		<![endif]-->

		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
		
		<script  type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-2.1.0.min.js"></script>
		<script  type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/date.js"></script>
		

		<title><?php echo CHtml::encode($this->pageTitle); ?></title>	
		<style>
			.menu div{
				border:0px solid red;
			}
			.menu a{
				text-decoration: none;
				color:#fff
			}
		</style>
	</head>
	<script>
		function showLoader(){
			$("#loader").addClass("block");
		}
		function hideLoader(){
			$("#loader").removeClass("block");
		}
		$(function(){
			setInterval(function(){
				//var d = new Date();
				$("#divDate").html(new Date().toString("dddd, dd-MMM-yyyy HH:mm:ss"));
			},1000);
		})
	</script>
	<body style="background-color:#00407d;background-image: url(images/background01.jpg);background-repeat: no-repeat">
		<div id="loader"> <img src='images/action/loader.gif' style="padding-top:20%"/> </div>
		<div style="width:99%;min-width:1200px;margin-left:auto;margin-right:auto;margin-top:10px">		
			<div class="menu" style="border:1px solid #000000;height:70px;background-color:#245272;padding:10px;color:#fff;font-size:14px">
				<div class="morph" style="float:left;margin-left:5px;width:80px">
					<a href="index.php?r=karyawan/home/index" target="content">
						<div style="text-align: center"><img src="images/action/Home-icon.png" /></div>
						<div style="text-align: center">Home</div>
					</a>
				</div>
				
				<div class="morph" style="float:left;margin-left:5px;width:80px">
					<a href="index.php?r=karyawan/commbook/main" target="content" style="text-align: center;">
						<div style="text-align: center"><img src="images/action/tables-icon.png"   /></div>
						<div style="text-align: center">Message</div>
					</a>
				</div>	
				
				<div class="morph" style="float:left;margin-left:5px;width:80px">
					<a href="index.php?r=karyawan/pelajaran/task_detail" target="content" style="text-align: center;">
						<div style="text-align: center"><img src="images/action/Actions-paste-icon.png"   /></div>
						<div style="text-align: center">Detail Task</div>
					</a>
				</div>	
							
				<div class="morph" style="float:left;margin-left:5px;width:80px">
					<a href="index.php?r=karyawan/penilaian/main" target="content" style="text-align: center;">
						<div style="text-align: center"><img src="images/action/Actions-user-group-new-icon.png"/></div>
						<div style="text-align: center">Penilaian</div>
					</a>
				</div>
				
				<div class="morph" style="float:left;margin-left:5px;width:80px">
					<a href="index.php?r=karyawan/login" style="text-align: center;">
						<div style="text-align: center"><img src="images/action/logout-icon.png"  /></div>
						<div style="text-align: center">Logout</div>
					</a>
				</div>
				
				
				<div class="morph" style="float:right;margin-left:5px;width:250px">
					<div style='text-align:right'>
						<?php
							$loginUser = LoginUser::getUser();
							if ($loginUser != null){
								echo "<label>" . Yii::t("label", "Selamat datang ") .  $loginUser["user_name"] . "</label>"; 
							} 
						?>
					</div>
					<div id="divDate" style='text-align:right'></div>
					
				</div>
				
				<div style="clear:both"></div>
				
				
			</div>
			
			<iframe name="content" src="index.php?r=karyawan/home" style="border:1px solid #000000;width:100%;height:500px;background-color:#ffffff">
				<p>Your browser does not support iframes.</p>
			</iframe>
			
			<div style="border:1px solid #000000;height:20px;background-color:#245272;color:#fff;padding-left:10px;padding-top:5px">
				&copy; PT Raba Komunikatama (2014)
			</div>
		</div>
		
	</body>
</html>